﻿<Application 
    x:Class="PhoneSample.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"    
    xmlns:sys="clr-namespace:System;assembly=mscorlib"
    xmlns:wpformsViewModel="clr-namespace:WPForms.Phone.ViewModel;assembly=WPForms.Phone">

    <!--Application Resources-->
    <Application.Resources>
        <sys:String x:Key="BingMapsKey">Amgr96oTRV5mPIAnYfngQnWKSRiakaUlyygPgK9CUTC9uuPaIqu68PUaLIFq_gov</sys:String>
        <sys:String x:Key="AppName">VendingMachines</sys:String>
        <sys:String x:Key="LiveClientId">00000000400D545D</sys:String>

        <!-- Add locator here, so desin time data binding will work -->
        <wpformsViewModel:ViewModelLocatorBase x:Key="ViewModelLocator"/>
    </Application.Resources>

    <Application.ApplicationLifetimeObjects>
        <!--Required object that handles lifetime events for the application-->
        <shell:PhoneApplicationService 
            Launching="Application_Launching" Closing="Application_Closing" 
            Activated="Application_Activated" Deactivated="Application_Deactivated"/>
    </Application.ApplicationLifetimeObjects>

</Application>